import request from '@/utils/request'

// 查询出差记录核销列表
export function listCustomer_records(query) {
  return request({
    url: '/customer/customer_records/list',
    method: 'get',
    params: query
  })
}

// 查询出差记录核销详细
export function getCustomer_records(id) {
  return request({
    url: '/customer/customer_records/' + id,
    method: 'get'
  })
}

// 新增出差记录核销
export function addCustomer_records(data) {
  return request({
    url: '/customer/customer_records',
    method: 'post',
    data: data
  })
}

// 修改出差记录核销
export function updateCustomer_records(data) {
  return request({
    url: '/customer/customer_records',
    method: 'put',
    data: data
  })
}

// 删除出差记录核销
export function delCustomer_records(id) {
  return request({
    url: '/customer/customer_records/' + id,
    method: 'delete'
  })
}
